package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.NursingProject;
import com.itheima.domain.vo.NursingProjectNameIdVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingProjectMapper extends BaseMapper<NursingProject> {

    @Select("select id,name from tb_nursing_project")
    List<NursingProjectNameIdVo> getAllNameId();
}
